<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> 
<table cellpadding="0" cellspacing="0" border="0" class="dataTable cell-border">
	<thead>
		<tr>
			<th>名称</th>
			<th>标题</th>
			<th>启用</th>
			<th>ACTION</th>
			<th>ID</th>
			<th>CLASS</th>
			<th>关联视图</th>
		</tr>
	</thead>
	<tbody>
	<c:set var="f" value="1" />
	<c:forEach var="model" items="${models }">
	<c:set var="f" value="${f+1 }" />
	<tr class='grade<c:if test="${f%2==0}">B</c:if><c:if test="${f%2!=0}">A</c:if>'>
		<td><a class="relate" href="<%=request.getContextPath()%>/c?s=model&o=control&id=${model.m_id }">${model.m_name }</a></td>
		<td>${model.m_title }</td>
		<td><c:if test="${model.m_enable==1}">YES</c:if><c:if test="${model.m_enable==0}">NO</c:if></td>
		<td>${model.m_action }</td>
		<td>${model.m_attr_id }</td>
		<td>${model.m_attr_class }</td>
		<td>${model.m_view }</td>
	</tr>
	</c:forEach>
	</tbody>
</table>
<script>
$(".dataTable").slider({'target':'#TPL','selector':'.relate'});
$(".dataTable").DataTable(datatable_config);
</script>